﻿using System.Collections.Immutable;
using System.Security.Claims;
using WT.OpenIddict.Application.Contracts.Authorization.Dto;

namespace WT.OpenIddict.Application.Contracts.Authorization;

public interface IAuthorizationAppService
{
    Task<ClaimsPrincipal> GetClientCredentialsIdentityAsync(string clientId);

    Task<PasswordIdentityResultDto> GetPasswordIdentityAsync(ImmutableArray<string> immutableArray, string username,
        string password);
}